package com.ruoyi.info.mapper;

import java.util.List;
import com.ruoyi.info.domain.CmsCaptcha;

/**
 * 验证码-Mapper接口
 * 
 * @author xwj
 * @date 2023-07-17
 */
public interface CmsCaptchaMapper 
{
    /**
     * 查询验证码-
     * 
     * @param id 验证码-主键
     * @return 验证码-
     */
    public CmsCaptcha selectCmsCaptchaById(Long id);

    /**
     * 查询验证码-列表
     * 
     * @param cmsCaptcha 验证码-
     * @return 验证码-集合
     */
    public List<CmsCaptcha> selectCmsCaptchaList(CmsCaptcha cmsCaptcha);

    /**
     * 新增验证码-
     * 
     * @param cmsCaptcha 验证码-
     * @return 结果
     */
    public int insertCmsCaptcha(CmsCaptcha cmsCaptcha);

    /**
     * 修改验证码-
     * 
     * @param cmsCaptcha 验证码-
     * @return 结果
     */
    public int updateCmsCaptcha(CmsCaptcha cmsCaptcha);

    /**
     * 删除验证码-
     * 
     * @param id 验证码-主键
     * @return 结果
     */
    public int deleteCmsCaptchaById(Long id);

    /**
     * 批量删除验证码-
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCmsCaptchaByIds(String[] ids);

    CmsCaptcha getLastCaptchaByKey(String ukey);
}
